﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace Entity
{
    public class tbvisistor
    {
        #region[Public Properties]

        public string Id { get; set; }
        public string iuseronline { get; set; }
        public string ivisitor { get; set; }
        public string iuseronlinedate { get; set; }
        public string dateonline { get; set; }

        #endregion
        #region[tbvisitorIDataReader]
        public static tbvisistor tbvisistorIDataReader(IDataReader dr)
        {
            var obj = new tbvisistor
                          {
                              Id = Convert.ToString(dr["Id"]),
                              iuseronline = Convert.ToString(dr["iuseronline"]),
                              ivisitor = Convert.ToString(dr["ivisitor"]),
                              iuseronlinedate = Convert.ToString(dr["iuseronlinedate"]),
                              dateonline = Convert.ToString(dr["dateonline"])
                          };
            return obj;
        }
        #endregion
    }
}
